package com.example.demo.controller;

import com.example.demo.entity.Plane;
import com.example.demo.utils.PHValueCount;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PHValueController {
    @PostMapping("/ph/value")
    public String phValue(@RequestBody Plane plane) {
        return PHValueCount.phValue(plane); //调用计算健康值自定义工具类
    }
}
